package com.igoal.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public abstract class BaseCommentEntry<T extends ICommentEntry<K>, K extends Entry> extends BaseObject {
	
	protected Long id;
	protected T parent;
	protected Set<T> child = new HashSet<T>();
	protected User user;
	protected K entry;	
	protected String title;
	protected String name;
	protected String userIP;
	protected Integer childrenCount;
	protected Integer level;
	protected String comment;
	protected String email;
	protected Date createDate;
	protected Date updateDate;
	protected DataStatus status;
	
	public void setChild(Set<T> child){
		this.child = child;
	}
	
	public Set<T> getChild(){
		return this.child;
	}	
}
